//
//  PointsModel.m
//  Run
//
//  Created by sxz on 16/4/7.
//  Copyright © 2016年 BetaTheta. All rights reserved.
//

#import "PointsModel.h"

@implementation PointsModel

//解档方法
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        
        self.latitude = [aDecoder decodeDoubleForKey:@"latitude"];
        self.longitude = [aDecoder decodeDoubleForKey:@"longitude"];
        
    }
    return self;
}

//归档方法
- (void)encodeWithCoder:(NSCoder *)aCoder {
    
    [aCoder encodeDouble:self.latitude forKey:@"latitude"];
    [aCoder encodeDouble:self.longitude forKey:@"longitude"];
    
}


@end
